package com.it.octoo.ctrl;

import com.it.octoo.entity.UserEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 说明
 * </p >
 *
 * @author miaoxiao
 * @since 2020/3/26
 */
@RestController
@RequestMapping("/user")
@Api(tags = "用户信息")
public class UserController {

    @GetMapping("/get")
    @ApiOperation("获取用户")
    public UserEntity get(){
        return new UserEntity(1L,"admin","123");
    }

}
